#ifndef SOCKET_H
#define SOCKET_H

#include <winsock2.h>
#include <iostream>
#include <sstream>
#include <string>


#define IPADDRESS "127.0.0.1"
#define PORT 60001

using namespace std;

class Socket
{
private:
	SOCKET m_socket;
public:
	Socket();
	bool Connect();
	bool quit();
	void recebe(char *answer);
	bool envia(char *msg,int length);
	bool game_end(char *Jogador,char *MonteActual, char *MonteAlvo);
	bool execute(char *Tabuleiro,char *Jogador, unsigned int Xi, unsigned int Yi , unsigned int Xf, unsigned int Yf, char *TipoMovimento);
	string analisaJogadaCPU(char *Tabuleiro,char *Jogador);
};

#endif